{layout name="layout1" /}
<style>
    .layui-form-label {
        width: 100px;
    }
</style>

<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <div class="layui-collapse like-layui-collapse" lay-accordion="" style="border:1px dashed #c4c4c4">
                <div class="layui-colla-item hidden">
                    <h2 class="layui-colla-title like-layui-colla-title" style="background-color: #fff">操作提示</h2>
                    <div class="layui-colla-content layui-show">
                        <p>。</p>
                        <p>。</p>
                    </div>
                </div>
            </div>
        </div>

        <div class="layui-card-body">
            <div class="layui-form" lay-filter="">

                <div class="layui-form-item">
                    <label class="layui-form-label" style="white-space: nowrap; ">押瓶租金：</label>
                    <div class="layui-input-inline">
                        <input type="number" name="bottle_deposit_month" lay-verType="tips" autocomplete="off"
                               value="{$config.bottle_deposit_month}" class="layui-input">
                        <div class=" layui-form-mid layui-word-aux" style="white-space: nowrap">

                        </div>
                    </div>
                    <div class="layui-form-mid"> 元/月</div>
                </div>


                <div class="layui-form-item ">
                    <label class="layui-form-label" style="white-space: nowrap; ">押瓶金额：</label>
                    <div class="layui-input-inline">
                        <input type="number" name="bottle_deposit" lay-verType="tips" autocomplete="off"
                               value="{$config.bottle_deposit}" class="layui-input">
                        <div class=" layui-form-mid layui-word-aux" style="white-space: nowrap"></div>
                    </div>
                    <div class="layui-form-mid"> 元/瓶</div>
                </div>

                <div class="layui-form-item ">
                    <label class="layui-form-label" style="white-space: nowrap; ">上楼费用：</label>
                    <div class="layui-input-inline">
                        <input type="number" name="per_floor_price" lay-verType="tips" autocomplete="off"
                               value="{$config.per_floor_price}" class="layui-input">
                        <div class=" layui-form-mid layui-word-aux" style="white-space: nowrap"></div>
                    </div>
                    <div class="layui-form-mid"> 元/层</div>
                </div>

                <div class="layui-form-item ">
                    <label class="layui-form-label" style="white-space: nowrap; ">上楼起收：</label>
                    <div class="layui-input-inline">
                        <input type="number" name="floor_begin" lay-verType="tips" autocomplete="off"
                               value="{$config.floor_begin}" class="layui-input">
                        <div class=" layui-form-mid layui-word-aux" style="white-space: nowrap"></div>
                    </div>
                    <div class="layui-form-mid"> 层</div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn layui-btn-sm {$view_theme_color}" lay-submit
                                lay-filter="setOther">确认
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script>


    layui.config({
        version: "{$front_version}",
        base: '/static/plug/layui-admin/dist/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'table', 'like'], function () {
        var $ = layui.$
            , form = layui.form
            , like = layui.like;

        form.on('submit(setOther)', function (data) {
            like.ajax({
                url: '{:url("shopSetting/setOther")}'
                , data: data.field
                , type: 'post'
                , success: function (res) {
                    if (res.code == 1) {
                        layer.msg(res.msg, {
                            offset: '15px'
                            , icon: 1
                            , time: 1500
                        });
                    }
                },
            });
        });

    });

</script>